﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="TinTucND.aspx.cs" Inherits="TinTucND" %>
    
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>
        <asp:Literal ID="littitle" runat="server"></asp:Literal></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:HiddenField ID="H_CatalogId" Value="0" runat="server" />
    <div class="title_page">
        <div class="title_page_L">
        </div>
        <div class="title_page_Ce">
            TIN TỨC
        </div>
        <div class="title_page_R">
        </div>
    </div>
    <div class="buynew">
        <div class="info_detail">
            <div class="info_form" style="height: auto !important;">
                <div class="info_detail_TT">
                    <asp:HyperLink ID="LienKet1" runat="server" NavigateUrl="#">
                        <asp:Label ID="lblTieuDeTin" runat="server" Text=""></asp:Label></asp:HyperLink>
                </div>
                <span class="detail_new_date">
                    <asp:Label ID="lblNgayCapNhat" runat="server" Text="Label"></asp:Label></span>
                <div style="padding: 5px;">
                    <p class="detail_new_tomtat">
                        <asp:Label ID="lblTomTat" runat="server" Text=""></asp:Label></p>
                    <div style="text-align: justify">
                        <asp:Label ID="lblNoiDungTin" CssClass="text_content" runat="server" Text=""></asp:Label>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="title_page">
        <div class="title_page_L">
        </div>
        <div class="title_page_Ce">
            BÌNH LUẬN
        </div>
        <div class="title_page_R">
        </div>
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="buynew">
                <div class="info_detail">
                    <div class="info_form" style="padding-left: 20px">
                        <asp:Panel ID="panelinfor" runat="server">
                            <p class="info_form_Co">
                                <div style="width: 110px; float: left;">
                                    Họ tên <span class="start">(*)</span></div>
                                <div style="float: left; vertical-align: middle">
                                    <asp:TextBox ID="txtHoTen" runat="server" Width="200px" MaxLength="100" CssClass="textboxthe"></asp:TextBox>
                                </div>
                            </p>
                            <p class="info_form_Co">
                                <div style="width: 110px; float: left;">
                                    Email <span class="start">(*)</span></div>
                                <div style="float: left; vertical-align: middle">
                                    <asp:TextBox ID="txtEmail" runat="server" Width="200px" MaxLength="200" CssClass="textboxthe"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" SetFocusOnError="True"
                                        ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage=" (*)"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="regEmail" ControlToValidate="txtEmail" Text="(Invalid email)"
                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" runat="server" />
                                </div>
                            </p>
                            <p class="info_form_Co">
                                <div style="width: 110px; float: left;">
                                    Tiêu đề <span class="start">(*)</span></div>
                                <div style="float: left; vertical-align: middle">
                                    <asp:TextBox ID="txtTieuDe" CssClass="textboxthe" Width="200px" MaxLength="200" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" SetFocusOnError="True"
                                        ControlToValidate="txtTieuDe" Display="Dynamic" ErrorMessage=" (*)"></asp:RequiredFieldValidator>
                                </div>
                            </p>
                            <p class="info_form_Co">
                                <div style="width: 110px; float: left;">
                                    Mã Xác Nhận <span class="start">(*)</span></div>
                                <div style="float: left; vertical-align: middle">
                                    <asp:Label ID="lblResult" runat="server" />
                                    <cc1:CaptchaControl ID="CaptchaControl1" runat="server" CaptchaBackgroundNoise="none"
                                        CaptchaLength="5" CaptchaHeight="60" CaptchaWidth="200" CaptchaLineNoise="None"
                                        CaptchaMinTimeout="5" />
                                </div>
                            </p>
                            <p class="info_form_Co">
                                <div style="width: 110px; float: left;">
                                    Nhập mã Xác Nhận <span class="start">(*)</span></div>
                                <div style="float: left; vertical-align: middle">
                                    <asp:TextBox CssClass="comment_input" value="Nhập Mã Xác Nhận" onblur="if(this.value=='') this.value='Nhập Mã Xác Nhận';"
                                    onfocus="if(this.value=='Nhập Mã Xác Nhận') this.value='';" Text="Nhập Mã Xác Nhận"
                                    runat="Server" ID="txtCaptcha" />
                                </div>
                            </p>
                            <p class="info_form_Co">
                                <div style="width: 110px; float: left;">
                                    Nội dung <span class="start">(*)</span></div>
                                <div style="float: left; vertical-align: middle">
                                    <asp:TextBox ID="txtNoiDung" CssClass="textboxthe" Width="400px" MaxLength="250"
                                        TextMode="MultiLine" Rows="3" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SetFocusOnError="True"
                                        ControlToValidate="txtNoiDung" Display="Dynamic" ErrorMessage=" (*)"></asp:RequiredFieldValidator>
                                </div>
                            </p>
                            <p class="info_form_Co">
                                <asp:ImageButton ID="cmdSave" runat="server" ImageUrl="~/Images/send.jpg" CssClass="button"
                                    OnClick="cmdSave_Click" />
                                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/Huy.jpg" CssClass="button"
                                    OnClick="cmdReset_Click" />
                            </p>
                        </asp:Panel>
                        <asp:Panel ID="panelnext" runat="server" Visible="false">
                            <div style="padding: 20px; text-align: center">
                                <font color="red"><b>Bình luận của bạn đã được gửi thành công!</b></font><br />
                                <br />
                                <asp:ImageButton ID="cmdLui" runat="server" ImageUrl="~/Images/nhaptiep.jpg" CssClass="button"
                                    OnClick="cmdLui_Click" /><br />
                            </div>
                        </asp:Panel>
                    </div>
                </div>
            </div>
            <div class="buynew">
                <div class="info_detail">
                    <ul class="listComment">
                        <asp:DataList ID="dlComment" runat="server" RepeatColumns="1" RepeatDirection="Horizontal"
                            Width="100%">
                            <ItemTemplate>
                                <li>
                                    <div class="binhluon_cha" id="commentrow2710">
                                        <div class="right">
                                            <div class="head">
                                                <h2 class="name">
                                                    <span style="color: #94c941;">
                                                        <%# Eval("HoTen") %>
                                                        |
                                                        <%# Eval("TieuDe") %></span>
                                                    <!-- - Thành viên Vip-->
                                                </h2>
                                                <span class="time">
                                                    <%# Eval("NgayCapNhat") %></span>
                                            </div>
                                            <div class="noiDung">
                                                <p>
                                                    <%# Eval("NoiDung") %></p>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ItemTemplate>
                        </asp:DataList>
                    </ul>
                    <cc1:Pager ID="Pager1" runat="server" PreviousClause='<html><img src="Images/prevBtn.gif" /></html>'
                        NextClause='<html><img src="Images/nextBtn.gif" /></html>' LastClause="" FirstClause=""
                        PageClause="<html><b>Trang </b></html>" OfClause=" /" PageSize="10" ToClause="đến"
                        ShowResultClause="Hiển thị từ" ShowingResultClause="Đang hiển thị từ" BackToPageClause="Quay lại trang"
                        NextToPageClause="Đến trang" OnCommand="Pager1_Command" ForeColor="#006600" Font-Bold="True" />
                </div>
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Pager1" EventName="Command" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
